package com.example.util;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by youkun on 2017/8/13.
 */
public class ResultUtil {

    private static Map<String,Object> result=null;
    public static  Map<String,Object> returnSuccess(String message,Object object){
        result = new HashMap<String,Object>();
        result.put("data",object);
        result.put("status",200);
        result.put("message",message);
        return result;
    }

    public static  Map<String,Object> returnError(String message,Object object){
        result = new HashMap<String,Object>();
        result.put("data",object);
        result.put("status",505);
        result.put("message",message);
        return result;
    }
}
